<?php
/**
 * created by zzy
 * date: 2017/11/16 11:02
 */
namespace App\Http\Admin\Company\Models;
use App\Eloquent\Ygt\Permission as YgtPermission;

class Permission extends YgtPermission{

    public static function getTypeActionJson( $type=1 )
    {
        $lists              = self::getTypeActionList($type);
        $result             = [];
        foreach( $lists as $key=>$val ){
            $arr            = [ $val['id']=>$val['title'] ];
            $result[]       = $arr;
        }
        $json               = json_encode( $result );
        return $json;
    }


}